Tristan Van Berkom [Sun, 11 Apr 2010 02:30:42 +0000 (22:30 -0400)]
Fixed wrapping labels to show up correctly aligned inside their allocations.
Tristan Van Berkom [Sun, 11 Apr 2010 02:03:20 +0000 (22:03 -0400)]
Adding tests ported over from the old branch by Matthias.
Tristan Van Berkom [Sat, 10 Apr 2010 01:50:33 +0000 (21:50 -0400)]
Added get_height_for_width/get_width_for_height implementation to GtkBox.
In order for natural size information to cascade correctly up through
the ancestry GtkBox needs to report height-for-width and width-for-height,
this patch includes an implementation for both in both orientations, one
of them is commented for now as its much too cpu intensive to actually use.
Tristan Van Berkom [Sat, 10 Apr 2010 01:47:25 +0000 (21:47 -0400)]
Fixing height-for-width wrapping of GtkLabel
Merged in fixes from the old branch in a patch prepared by Matthias Clasen,
added some fixes of my own to make sure that label wrapping follows allocation
and not requisition at show time (allocate time).
Tristan Van Berkom [Fri, 9 Apr 2010 04:19:42 +0000 (00:19 -0400)]
Reimplemented GtkExtendedLayout on GtkBin
Instead of implementing ->get_desired_size() on GtkBin, which
cant really be done because border widths are in the domain of
the concrete subclasses; here we implement only the get_height_for_width
and get_width_for_height apis - GtkBin subclasses whom might have a
variable border width depending on allocations need to write their
own height-for-width implementations.
Tristan Van Berkom [Fri, 9 Apr 2010 02:05:36 +0000 (22:05 -0400)]
Fixed regression in GtkImage size requests
Fixed gtksizegroup.c:do_size_request() to never force an initial requisition
as some widgets expect it to remain unchanged across resizes (GtkImage
with pixbufs/filenames assigned is one of these cases).
Tristan Van Berkom [Fri, 9 Apr 2010 01:45:07 +0000 (21:45 -0400)]
Fixed gtk_box_size_allocate() for homogeneous boxes
gtk_box_size_allocate() was forgetting to fetch the minimum
size for children when allocating in homogeneous mode and then
accessing the uninitialized allocated values in that case, fixed.
Tristan Van Berkom [Thu, 8 Apr 2010 22:54:47 +0000 (18:54 -0400)]
Implemented GtkExtendedLayout on GtkComboBox.
With this commit it is possible to use ellipsizing text
in the combobox's cell renderers and have them desire to
expand to natural size when placed in a GtkBox.
Tristan Van Berkom [Thu, 8 Apr 2010 22:53:23 +0000 (18:53 -0400)]
Deprecated gtk_widget_size_request and gtk_widget_get_child_requisition()
Ever since size groups gtk_widget_size_request() can be used in place
of gtk_widget_get_child_requisition(), deprecating both now in favor
of gtk_extended_layout_get_desired_size().
Tristan Van Berkom [Thu, 8 Apr 2010 22:52:12 +0000 (18:52 -0400)]
Added assertions
Added assersions that gtk_extended_layout_get_height_for_width()
methods return minimum sizes lesser than the natural size.
Tristan Van Berkom [Thu, 8 Apr 2010 22:49:34 +0000 (18:49 -0400)]
Simplified code in GtkSizeGroup, fixes minimum natural size.
collapse get_fast_child_requisition && get_fast_natural_size into
a single get_fast_size() function which uses the possibly hard coded
minimum request as a minimum value for the returned desired size
(this fixes cases where widgets unwarily return height-for-width
with minimum size > natural size).
Tristan Van Berkom [Thu, 8 Apr 2010 22:48:42 +0000 (18:48 -0400)]
Added gtk_cell_view_get_size_of_row() to gtk.symbols
Tristan Van Berkom [Thu, 8 Apr 2010 22:46:19 +0000 (18:46 -0400)]
GtkCellView refactoring for extended layout
Added gtk_cell_view_get_desired_size_of_row() to report full
extended layout information for a said row, this obsoletes
gtk_cell_view_get_size_of_row(). Also make GtkCellView queue
a resize on itself when cell renderers are added/removed.
Tristan Van Berkom [Wed, 7 Apr 2010 05:27:15 +0000 (01:27 -0400)]
Some extended layout fixes for GtkCellView
Fixed GtkCellView to use the new GtkExtendedCell interface to get
natural size from cells and factored out the old size_request() method.
Tristan Van Berkom [Wed, 7 Apr 2010 00:48:41 +0000 (20:48 -0400)]
Implement GtkExtendedLayout on GtkButton
GtkButton as a content type of widget needs to forward natural size information
to parent containers in order to be resized naturally.
Tristan Van Berkom [Wed, 7 Apr 2010 00:47:15 +0000 (20:47 -0400)]
Implement GtkExtendedLayout on Alignment
GtkAlignment is already using the height for width api to align
the child in the cases where space is available, but also needed
to implement the extended layout in order to reflect natural sizes
to parent widgets.
Tristan Van Berkom [Tue, 6 Apr 2010 21:15:50 +0000 (17:15 -0400)]
Implemented GtkExtendedLayout on GtkViewport
Tristan Van Berkom [Tue, 6 Apr 2010 07:05:52 +0000 (03:05 -0400)]
Implement GtkExtendedCell on GtkCellRendererText
Tristan Van Berkom [Tue, 6 Apr 2010 07:05:20 +0000 (03:05 -0400)]
Use new gtk_tree_view_column_get_desired_size()
Tristan Van Berkom [Tue, 6 Apr 2010 07:03:55 +0000 (03:03 -0400)]
Added gtk_tree_view_column_get_desired_size() as its a corner case
that does not fall under the two categories.
Tristan Van Berkom [Tue, 6 Apr 2010 07:03:03 +0000 (03:03 -0400)]
Added GtkExtendedCell interface (last commit)
Tristan Van Berkom [Tue, 6 Apr 2010 06:59:21 +0000 (02:59 -0400)]
Add new GtkExtendedCell interface
Added a new interface to extend layout information of GtkCellRenderers,
GtkCellRenderer is a prerequisite of GtkExtendedCellIface and provides
a base implementation of ->get_desired_size() with ->get_size().
Note that the api for GtkExtendedCell differs from GtkExtendedLayout
since the cells need to be passed an additional widget to calculate
sizes contextual to the widget/screen (fonts etc).
Tristan Van Berkom [Tue, 6 Apr 2010 06:56:20 +0000 (02:56 -0400)]
Remove gtk_widget_get_desired_size()
Tristan Van Berkom [Tue, 6 Apr 2010 06:55:07 +0000 (02:55 -0400)]
Fixed classes to call gtk_extended_layout_get_desired_size_again()
The previous patch removes the ambiguous gtk_widget_get_desired_size().
Tristan Van Berkom [Tue, 6 Apr 2010 06:53:51 +0000 (02:53 -0400)]
Call the ->get_desired_size() method directly on the vtable
This commit is a mistake, it should have been included with the last
commit.
Tristan Van Berkom [Tue, 6 Apr 2010 06:47:20 +0000 (02:47 -0400)]
Make GtkWidget a prerequisite of extended layout
As it is not allowed to called gtk_extended_layout_get_desired_size()
on a GtkWidget directly; gtk_widget_get_desired_size() was really an
ambiguous api. This patch removes the added GtkWidget api, calls
the appropriate sizegroup code which in turn envokes the interface
vtable, this patch also accordingly makes GtkWidget a prerequisite
of GtkExtendedLayout (the api doesnt work for cell renderers anyway,
patch comming...).
Tristan Van Berkom [Mon, 5 Apr 2010 22:10:41 +0000 (18:10 -0400)]
Revert "Implement extended layout for GtkBin"
This reverts commit
5e8045b14dde691fef5447b7ca483d95f9132b8a.
Conflicts:
gtk/gtkbin.c
Tristan Van Berkom [Mon, 5 Apr 2010 22:01:56 +0000 (18:01 -0400)]
Fixed 2 bugs in gtk_box_size_allocate()
This commit fixes the loop to take into consideration the
child->padding that will be allocated to the child while calculating
full available size. Additionally it fixes the initial positioning
of child widgets when packed at the end (a special case because the
x position used starts from the end of the box).
Tristan Van Berkom [Mon, 5 Apr 2010 21:57:06 +0000 (17:57 -0400)]
Fixed do_size_request() to start with a 0 base requisition instead of -1
Tristan Van Berkom [Sun, 4 Apr 2010 20:38:36 +0000 (16:38 -0400)]
Changed initial values for requisition from -1 to 0.
When doing size-requests and get_natural_size() calls, use 0 as
the base value instead of -1, because size_request code assumes
that widget->requesition is initialized at 0.
Tristan Van Berkom [Sun, 4 Apr 2010 20:37:06 +0000 (16:37 -0400)]
Fixed GtkBox to not call get_desired_size() on a child when no child is present.
Tristan Van Berkom [Sun, 4 Apr 2010 01:37:42 +0000 (21:37 -0400)]
Making function private in gtktreeviewcolumn to pass the abi test.
Tristan Van Berkom [Sun, 4 Apr 2010 01:35:18 +0000 (21:35 -0400)]
Refixed merge conflicts for GTK_WIDGET_MAPPED/GTK_WIDGET_VISIBLE
Tristan Van Berkom [Sun, 4 Apr 2010 00:43:39 +0000 (20:43 -0400)]
Fixed internal native layout algorythm wrt size-request singals/implementations.
Because "size-request" signal can be handled by signal connections as well
as by third party derived classes it is necessary to always fire the
"size-request" signal for every recalculation of the widget requisition,
now gtksizegroup.c:do_size_request() fires the signal first and allows it
to overflow the minimum/natural sizes returned by extended layout
implementations.
GtkWidget->get_natural_size() is now left assigning default -1 values to
ensure they both get overridden by the size-request handling.
Tristan Van Berkom [Sun, 4 Apr 2010 00:40:50 +0000 (20:40 -0400)]
Fixed extended layout implementors to not call ->get_desired_size() directly
Getting the desired size of a GtkWidget must always be done with
gtk_widget_get_desired_size() and never with
gtk_extended_layout_get_desired_size() directly as the former passes
through size group logic and updates the widget->requisition cache.
Tristan Van Berkom [Sun, 4 Apr 2010 00:36:13 +0000 (20:36 -0400)]
Removed casing of GTK_IS_EXTENDED_LAYOUT() from GtkViewport.
Tristan Van Berkom [Sun, 4 Apr 2010 00:34:43 +0000 (20:34 -0400)]
Fixed invalid pointer access in gtk_tree_view_column_get_desired_size()
Tristan Van Berkom [Sun, 4 Apr 2010 00:30:14 +0000 (20:30 -0400)]
Partially fixed GtkTreeview for extended layout
Removed the size_request() handling on the class and calculate
minimum size from get_desired_size(); base the natural width on
either the minimum of column headers, or a greater natural request
of the columns renderers.
Tristan Van Berkom [Sun, 4 Apr 2010 00:09:18 +0000 (20:09 -0400)]
Applied Jan Arne Petersen's patch for GtkScrolledWindow
Applied patch to add height-for-width/width-for-height suppot
to GtkScrolledWindow plus modifications to use gtk_widget_get_desired_size()
to query children sized instead of directly calling the layout api, plus
removed the ->size_request() implementation interfering with the mess.
Tristan Van Berkom [Sat, 3 Apr 2010 23:48:14 +0000 (19:48 -0400)]
Fixed GtkCellRendererText invalid pointer access.
Fixed get_desired_size() to not access parameters when NULL and
also not to access priv->object if it hasnt yet been assigned.
Jan Arne Petersen [Thu, 1 Apr 2010 09:53:41 +0000 (11:53 +0200)]
Take extended layout into account in viewport
Make sure the right height is used in GtkViewPort.
Matthias Clasen [Thu, 1 Apr 2010 14:07:11 +0000 (10:07 -0400)]
Don't use gio-unix on win32
We only need gio-unix when building the x11 backend.
Reported by Yevgen Muntyan in bug 614540.
Inaki Larranaga Murgoitio [Wed, 31 Mar 2010 10:22:17 +0000 (12:22 +0200)]
Updated Basque language
Inaki Larranaga Murgoitio [Sat, 27 Mar 2010 12:47:55 +0000 (13:47 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Sat, 27 Mar 2010 12:27:40 +0000 (13:27 +0100)]
Updated Basque language
Kenneth Nielsen [Tue, 30 Mar 2010 22:21:05 +0000 (00:21 +0200)]
Updated Danish translation
Runa Bhattacharjee [Tue, 30 Mar 2010 10:23:06 +0000 (15:53 +0530)]
Updated Bengali India Translation
Runa Bhattacharjee [Tue, 30 Mar 2010 09:36:26 +0000 (15:06 +0530)]
Updated Bengali India Translation
Jordi Serratosa [Mon, 29 Mar 2010 18:27:08 +0000 (20:27 +0200)]
Fixes to Catalan translation
Tristan Van Berkom [Mon, 29 Mar 2010 17:27:40 +0000 (13:27 -0400)]
Fixed possible devision by zero in size negotiations
Fixed GtkToolItemGroup to avoid deviding by zero when all children
are invisible or there are no children. bgo #613974.
Tristan Van Berkom [Mon, 29 Mar 2010 17:22:18 +0000 (13:22 -0400)]
Added missing default events in realize() implementations
Added gtk_widget_get_events() to the event masks declared by
GtkToolPalette & GtkToolItemGroup.
Tristan Van Berkom [Mon, 29 Mar 2010 17:16:01 +0000 (13:16 -0400)]
Added missing break statement to mutator: gtk_tool_item_group_set_property()
Benjamin Otte [Mon, 29 Mar 2010 14:26:14 +0000 (16:26 +0200)]
Fix error case in filesystem model
We should not unref the model here, it might not even exist anymore.
Instead check if it exists and only use it if it does.
The unref was leftover from a previous fix in
ba9f53397ff0b86ad56166c7fc91b4d499f7aefc.
Spotted by Matthias Clasen in
https://bugzilla.gnome.org/show_bug.cgi?id=614099
David Planella [Mon, 29 Mar 2010 07:22:08 +0000 (09:22 +0200)]
Updated Catalan translation with a couple of fixes
David Planella [Mon, 29 Mar 2010 07:16:43 +0000 (09:16 +0200)]
Updated Catalan translation
Jamil Ahmed [Sun, 28 Mar 2010 09:49:58 +0000 (15:49 +0600)]
Updated Bengali translation
Christian Dywan [Sun, 28 Mar 2010 02:21:47 +0000 (04:21 +0200)]
Fix a misspelling in gtk_cell_view_new_with_markup
This fixes bug 613887.
Ask H. Larsen [Sat, 27 Mar 2010 23:15:48 +0000 (00:15 +0100)]
Updated Danish translation
Maxim V. Dziumanenko [Sat, 27 Mar 2010 12:42:07 +0000 (14:42 +0200)]
Updated Ukrainian translation
Maxim V. Dziumanenko [Sat, 27 Mar 2010 12:29:08 +0000 (14:29 +0200)]
Updated Ukrainian translation
Jamil Ahmed [Sat, 27 Mar 2010 12:10:02 +0000 (18:10 +0600)]
Updated Bengali translation
Jamil Ahmed [Sat, 27 Mar 2010 12:02:54 +0000 (18:02 +0600)]
Updated Bengali translation
Hiroyuki Ikezoe [Tue, 22 Dec 2009 01:12:29 +0000 (10:12 +0900)]
[directfb] Fix compile error on DirectFB backend.
Add a stub for gdk_keymap_map_virtual_modifiers.
Hiroyuki Ikezoe [Mon, 21 Dec 2009 06:34:06 +0000 (15:34 +0900)]
Use g_value_take_string to avoid redundant invoking g_free.
Javier Jardón [Thu, 25 Mar 2010 13:51:40 +0000 (14:51 +0100)]
Fix compilation warning: Use GtkWidget instead GtkMenuItem
Matthias Clasen [Thu, 25 Mar 2010 04:55:15 +0000 (00:55 -0400)]
Fix a 64bit issue
Thank you libpng, for typedef unsigned long png_uint_32.
Matthias Clasen [Tue, 23 Mar 2010 15:08:28 +0000 (11:08 -0400)]
Add notes about gobject-introspection
Matthias Clasen [Tue, 23 Mar 2010 14:24:51 +0000 (10:24 -0400)]
Bump version to 2.20.1
Matthias Clasen [Tue, 23 Mar 2010 14:18:29 +0000 (10:18 -0400)]
2.20.0
Miloš Popović [Tue, 23 Mar 2010 09:39:34 +0000 (10:39 +0100)]
Updated Serbian translations
Matthias Clasen [Tue, 23 Mar 2010 04:21:24 +0000 (00:21 -0400)]
Bump required version of glib in INSTALL.in, too
Matthias Clasen [Tue, 23 Mar 2010 03:30:00 +0000 (23:30 -0400)]
Set version to 2.20.0
Matthias Clasen [Tue, 23 Mar 2010 03:15:52 +0000 (23:15 -0400)]
Another small doc cleanup
Matthias Clasen [Tue, 23 Mar 2010 03:10:38 +0000 (23:10 -0400)]
Minor doc cleanup
Matthias Clasen [Mon, 22 Mar 2010 22:25:49 +0000 (18:25 -0400)]
Updates
Wouter Bolsterlee [Mon, 22 Mar 2010 18:22:16 +0000 (19:22 +0100)]
Dutch translation updated by Tino Meinen
Sjoerd Simons [Mon, 22 Mar 2010 18:11:05 +0000 (14:11 -0400)]
Prevent the destruction of the menu label on page removal
In certain cases the menu label of a notebook page will be reused after the
page was removed from the notebook, for instance when a page is dragged from
one notebook to another. For such cases make sure that the menu label isn't
destroyed as part of destroying the menu item it was in.
Matthias Clasen [Mon, 22 Mar 2010 17:02:24 +0000 (13:02 -0400)]
Add a dependency for Gtk-2.0.gir on Gdk-2.0.gir
Another parallel build fix, see bug 610946.
Damien Lespiau [Mon, 22 Mar 2010 16:53:18 +0000 (12:53 -0400)]
introspection: Fix parallel builds
One needs to add an explicit dependency between the gir files and the
.la libtool wrapper as this dependency is not added automatically by
Makefile.introspection. Not adding these breaks parallel builds as make
does not wait for the .la to be generated before launching g-ir-scanner.
Inaki Larranaga Murgoitio [Mon, 22 Mar 2010 13:22:22 +0000 (14:22 +0100)]
Updated Basque language
Clytie [Mon, 22 Mar 2010 12:48:44 +0000 (23:18 +1030)]
Updated Vietnamese translation
Clytie [Mon, 22 Mar 2010 12:48:03 +0000 (23:18 +1030)]
Updated Vietnamese translation
Inaki Larranaga Murgoitio [Mon, 22 Mar 2010 12:08:52 +0000 (13:08 +0100)]
Updated Basque language
Sweta Kothari [Mon, 22 Mar 2010 07:34:22 +0000 (13:04 +0530)]
Updated Gujarati translations
Sweta Kothari [Mon, 22 Mar 2010 07:01:13 +0000 (12:31 +0530)]
Updated Gujarati Translations
Daniel Nylander [Sun, 21 Mar 2010 20:12:28 +0000 (21:12 +0100)]
Updated Swedish translation
Daniel Nylander [Sun, 21 Mar 2010 11:29:02 +0000 (12:29 +0100)]
Updated Swedish translation
Daniel Nylander [Sun, 21 Mar 2010 11:02:57 +0000 (12:02 +0100)]
Updated Swedish translation
Tommi Vainikainen [Sat, 20 Mar 2010 19:55:51 +0000 (21:55 +0200)]
Updated Finnish translation
Chao-Hsiung Liao [Sat, 20 Mar 2010 12:11:07 +0000 (20:11 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Matthias Clasen [Sat, 20 Mar 2010 03:20:38 +0000 (23:20 -0400)]
Avoid spurious notifications from GtkEntry
Using gtk_entry_set_buffer() in dispose() causes problematic
notifications, so just get rid of the buffer manually. See bug 613241.
Tomas Bzatek [Fri, 19 Mar 2010 13:40:11 +0000 (14:40 +0100)]
search: update for tracker 0.8 API
Tracker 0.8 series (and late 0.7.xx) introduces new API based on SPARQL
query language. The queries here use fulltext search, just like with
with previous tracker versions. Old tracker 0.6 support is still maintained.
Fabrício Godoy [Fri, 19 Mar 2010 02:45:23 +0000 (23:45 -0300)]
Updated Brazilian Portuguese Translation
A S Alam [Fri, 19 Mar 2010 02:37:20 +0000 (08:07 +0530)]
Completed Punjabi Translation by A S Alam
Dumitru Mișu Moldovan [Thu, 18 Mar 2010 20:33:16 +0000 (22:33 +0200)]
Updated Romanian translation
Mattias Põldaru [Thu, 18 Mar 2010 14:27:02 +0000 (16:27 +0200)]
Estonian translation updated
Matthias Clasen [Thu, 18 Mar 2010 01:17:38 +0000 (21:17 -0400)]
Make menu scrolling work with auto mnemonics
The menu scrolling code is not robust against menu repositioning so
we have avoid causing unnecessary recalculations of labels in parent
menuitems.
Hiroyuki Ikezoe [Tue, 16 Mar 2010 21:10:18 +0000 (17:10 -0400)]
Fix a tiny documentation typo
Marek Kasik [Wed, 17 Mar 2010 09:14:24 +0000 (10:14 +0100)]
Define httpGetHostname() for CUPS 1.1 and lower
Function httpGetHostname() is in CUPS since version 1.2, that is why we need
its equivalent for lower versions of CUPS (#610176).
Javier Jardón [Tue, 16 Mar 2010 18:16:31 +0000 (19:16 +0100)]
More uses of g_strcmp0